﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;

namespace Windvoice.Album.Model
{
    public class AlbumInfo
    {
        private int _ID;
        private int _PrefaceID;

        private string _AlbumName;
        private string _Description;

        private DateTime _CreateTime;
        private DateTime _UpdateTime;

        public AlbumInfo() 
        {

        }

        public AlbumInfo(DataRow row)
        {
            _ID = int.Parse(row["id"].ToString());
            _PrefaceID = int.Parse(row["prefaceid"].ToString());
            _AlbumName = row["albumname"].ToString();
            _Description = row["description"].ToString();
            _CreateTime = DateTime.Parse(row["createtime"].ToString());
            _UpdateTime = DateTime.Parse(row["updatetime"].ToString());

        }

        public int ID
        {
            get { return _ID; }
            set { _ID = value; }
        }
        public int PrefaceID
        {
            get { return _PrefaceID; }
            set { _PrefaceID = value; }
        }

        public string AlbumName
        {
            get { return _AlbumName; }
            set { _AlbumName = value; }
        }
        public string Description
        {
            get { return _Description; }
            set { _Description = value; }
        }

        public DateTime CreateTime
        {
            get { return _CreateTime; }
            set { _CreateTime = value; }
        }
        public DateTime UpdateTime
        {
            get { return _UpdateTime; }
            set { _UpdateTime = value; }
        }

    }
}
